﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TDAPIOLELib;

namespace QCCure.Core
{
    [Serializable]
    public class QCUser
    {
        private string username;
        private string fullname;

        public QCUser()
        {
        }

        public QCUser(string username)
        {
            this.username = username;
        }

        public QCUser(ICustomizationUser user)
        {
            this.username = user.Name;
            this.fullname = user.FullName;
        }

        public string Username
        {
            get {
                if (username != null)
                {
                    return username;
                }
                else
                {
                    return "";
                }
            }
        }

        public string FullName
        {
            get { return fullname; }
            set { this.fullname = value; }
        }

        public override string ToString()
        {
            return fullname + " [" + username + "]";
        }
    }
}
